package com.vizhuo.client.business.smscode.request;

import java.io.Serializable;
import java.util.List;

import com.vizhuo.client.base.AbstractRequest;

/**
 * @author xujj
 * @date 创建时间：2015年6月29日 下午4:08:56
 * @version 1.0
 * @parameter
 * @since
 * @return
 */
public class PostSMSMessageRequest extends AbstractRequest implements Serializable {

    public PostSMSMessageRequest(int appType, String loginToken, String uMengdeviceToken, String userName) {
        super(appType, loginToken, uMengdeviceToken, userName);
    }

    public PostSMSMessageRequest() {
        super();
    }

    /**
     * 给多个手机发送短信（比如过节时给客户群发短信）
     */
    private static final long serialVersionUID = -4932157262760450312L;

    private List<String> mobile;

    private String message;// 发送短信的内容

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<String> getMobile() {
        return mobile;
    }

    public String[] getMobiles() {
        // 将其拼成个字符串数组
        String[] sb = new String[mobile.size()];
        if (mobile == null || mobile.size() == 0) {
            return new String[] { "" };
        }
        for (int i = 0; i < mobile.size(); i++) {
            sb[i] = mobile.get(i);
        }
        return sb;
    }

    public void setMobile(List<String> mobile) {
        this.mobile = mobile;
    }

}
